From c9edca86f1327ecebc565a27b96ac77589578d8f Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Mon, 14 Aug 2006 11:35:57 +0100 Subject: [PATCH] [HVM][LINUX] Add a header file with wrappers for hvm_op hypercall. Signed-off-by: Steven Smith --- linux-2.6-xen-sparse/include/xen/hvm.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 linux-2.6-xen-sparse/include/xen/hvm.h diff --git a/linux-2.6-xen-sparse/include/xen/hvm.h b/linux-2.6-xen-sparse/include/xen/hvm.h new file mode 100644 index 0000000000..25987ffee5 --- /dev/null +++ b/linux-2.6-xen-sparse/include/xen/hvm.h @@ -0,0 +1,17 @@ +/* Simple wrappers around HVM functions */ +#ifndef XEN_HVM_H__ +#define XEN_HVM_H__ + +#include +#include + +static inline unsigned long hvm_get_parameter(int idx) +{ + struct xen_hvm_param xhv; + + xhv.domid = DOMID_SELF; + xhv.index = idx; + return HYPERVISOR_hvm_op(HVMOP_get_param, &xhv); +} + +#endif /* XEN_HVM_H__ */ -- 2.30.2